export default function hasPermission(params) {
    let tag = false
    let codeList = JSON.parse(sessionStorage.getItem("codeList"))
    for (let i = 0;i < codeList.length;i++) {
        if (codeList[i] === params) {
            tag = true
            break
        }
    }

    return tag
}